import 'package:flutter/material.dart';
import 'package:flutter_basic/basic/basic_view.dart';
import 'package:get/get.dart';
import '../controller.dart';
import 'controller.dart';

class TransHomePage extends BasicPage<TransHomePageController>{
  TransHomePage.bind(controller, {String? tag}) : super.bind(controller, tag: tag);
  @override
  Widget build(BuildContext context) {
    print('build-build:${this.runtimeType}');
    TransactionPageController transController = Get.find(tag: viewTag);
    return Scaffold(
      appBar: AppBar(
        title: Text('成交页面'),
        centerTitle: true,
      ),
      body: GestureDetector(
        onTap: (){
          transController.pageController.nextPage(
              duration: Duration(milliseconds: 200),
              curve: Curves.ease,
          );
        },
        child: Center(
          child: Container(
            height: 100,
            child: Text('成交页面'),
          ),
        ),
      ),
    );
  }
}
